<?php

namespace Admin\Controller;

class AccountDetailController extends AdminbaseController {

    function _initialize() {
        parent::_initialize();
        $this->currentModel = D("AccountDetail");
    }

    //首页
    public function index() {

        $requestMap = $this->convertRequestToMap();

        //分页
        $count = $this->currentModel->getListCount($requestMap);
        $page = $this->page($count, C("DEFAULT_PAGE_SIZE"));

        //获取公会列表
        $list = $this->currentModel->queryForList($page, $requestMap);

        $this->assign("typeEnum", C("ACCOUNT_DETAIL_TYPE"));
        $this->assign('list', $list);
        $this->assign("page", $page->show('Admin', $this->parameter));
        $this->display();

    }

}